home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / smorph.6 < prev    next >
Encoding:
Text File  |  1996-07-16  |  754 b   |  28 lines

  1. .TH SMORPH
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. SMORPH
  5.  
  6.  
  7.  
  8.  SurfaceType SMORPH( SurfaceType Srf1, SurfaceType Srf2, NumericType Blend )
  9.  
  10. Creates a new surface which is a convex blend of the two given surfaces.
  11. The two given surfaces must be compatible (see FFCOMPAT) before this blend
  12. is invoked. Very useful if a sequence that "morphs" one surface to another
  13. is to be created.
  14.  
  15. Example:
  16.  
  17.  for ( i = 0.0, 1.0, 11.0,
  18.         Msrf = SMORPH( Srf1, Srf2, i / 11.0 ):
  19.         color( Msrf, white ):
  20.         attrib( Msrf, "rgb", "255,255,255" ):
  21.         attrib( Msrf, "reflect", "0.7" ):
  22.         save( "morp1-" + i, Msrf )
  23.  );
  24.  
  25. creates a sequence of 12 surfaces, morphed from Srf1 to Srf2
  26. and saves them in the files "morph-0.dat" to "morph-11.dat".
  27. See also CMORPH.
  28.